package com.example.mapper;

import com.example.pojo.Area;
import com.example.pojo.AreaContact;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface AreaContactMapper {

    @Select("select * from t_area_contact where area_id=#{areaId}")
    @ResultMap("AreaContactResult")
    List<AreaContact> selectByAreaId(Long areaId);

    int batchInsert(List<AreaContact> areaContactList);

    int batchUpdateByAreaId(List<Area> areas2);

    int batchUpdateByContactAreaId(List<Area> areas2);
}
